import java.sql.Date;
import java.util.Calendar;

public class Balance {

	private long balanceId;
	private long action;
	private double amount;
	private Date date;
	private long custId;

	public Balance() {

	}

	public Balance(long action, double amount, long custId) {

		this.action = action;
		Calendar today = Calendar.getInstance();
		this.date = new Date(today.getTimeInMillis());
		this.amount = amount;
		this.custId = custId;

	}

	public long getBalance_id() {
		return balanceId;
	}

	public void setBalance_id(long balanceId) {
		this.balanceId = balanceId;
	}

	public long getAction() {
		return action;
	}

	public void setAction(long action) {
		this.action = action;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public long getCustId() {
		return custId;
	}

	public void setCustId(long custId) {
		this.custId = custId;
	}

	@Override
	public String toString() {
		System.out.println("*******************************************");
		System.out.println();
		return "Balance [action=" + action + ", amount=" + amount + ", balanceId=" + balanceId + ", custId=" + custId + ", date=" + date + "]";

	}

}
